#include "TagRule.h"


namespace Utilities {

	INIT_FACTORY(TagRule);

	TagRule::TagRule(){
	}


	TagRule::TagRule(string _oldTag, string _newTag){
		oldTag = _oldTag;
		newTag = _newTag;
	}

	ObjectInputStream & TagRule::load(ObjectInputStream & iis){
		iis >> oldTag >> newTag;
		return iis;
	}

	ObjectOutputStream & TagRule::save(ObjectOutputStream & oos) const{
		oos << oldTag << sep << newTag;
		return oos;
	}

}